﻿namespace SuppKids.Core.Security.File
{
	public class FileStorage : IStorage
	{
		public virtual void WriteAllBytes(string path, byte[] bytes)
		{
			System.IO.File.WriteAllBytes(path, bytes);
		}

		public virtual void WriteAllText(string path, string contents)
		{
			System.IO.File.WriteAllText(path, contents);
		}

		public virtual byte[] ReadAllBytes(string path)
		{
			return System.IO.File.ReadAllBytes(path);
		}

		public virtual string ReadAllText(string path)
		{
			return System.IO.File.ReadAllText(path);
		}

		public virtual bool Exists(string path)
		{
			return System.IO.File.Exists(path);
		}

		public virtual void Delete(string path)
		{
			System.IO.File.Delete(path);
		}
	}
}
